/**
 * Copyright © 2015-2020 <a href="http://www.jeeplus.org/">JeePlus</a> All rights reserved.
 */
package com.jeeplus.modules.xs_book_agreemnet.entity;

import com.jeeplus.modules.xs_book.entity.XsBook;
import com.jeeplus.modules.xs_writer.entity.XsWriter;

import com.jeeplus.core.persistence.DataEntity;
import com.jeeplus.common.utils.excel.annotation.ExcelField;
import lombok.Data;

/**
 * 书籍协议信息Entity
 * @author 天竹子
 * @version 2021-07-15
 */
@Data
public class XsBookAgreement extends DataEntity<XsBookAgreement> {
	
	private static final long serialVersionUID = 1L;
	@ExcelField(title="书籍名称", fieldType=XsBook.class, value="book.name", align=2, sort=1)
	private XsBook book;		// 书籍名称
	@ExcelField(title="作家名称", fieldType=XsWriter.class, value="writer.name", align=2, sort=2)
	private XsWriter writer;		// 作家名称
	@ExcelField(title="协议链接", align=2, sort=3)
	private String url;		// 协议链接
	@ExcelField(title="姓名", align=2, sort=4)
	private String name;		// 姓名
	@ExcelField(title="地址", align=2, sort=5)
	private String address;		// 地址
	@ExcelField(title="身份证号", align=2, sort=6)
	private String idNumber;		// 身份证号
	@ExcelField(title="是否签订(1.是2.否)", dictType="is_no", align=2, sort=7)
	private String isSigned;		// 是否签订(1.是2.否)
	
	public XsBookAgreement() {
		super();
		this.setIdType(IDTYPE_AUTO);
	}
	
	public XsBookAgreement(String id){
		super(id);
	}
}